package cn.tedu.vacate.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class VacateVO {
    @ApiModelProperty("假单id")
    Long id;
    @ApiModelProperty("员工Id")
    Long userId;
    @ApiModelProperty("审批类型")
    String approvalType;
    @ApiModelProperty("所属部门")
    String department;
    @ApiModelProperty("审批人")
    Long leaderId;
    @ApiModelProperty("审批状态")
    String statusApplication;
    @ApiModelProperty("申请原因")
    String reason;
    @ApiModelProperty("驳回原因")
    String rejectionReason;
    @ApiModelProperty("天数")
    Integer days;
    @ApiModelProperty("请假类型")
    String leaveType;
    @ApiModelProperty("出差地点")
    String businessTripLocation;
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("结束时间")
    Date   endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    Date   updateTime;
}
